package com.snail.billing.json;

import org.json.JSONException;
import org.json.JSONObject;

public class JsonRandomRegister extends JsonBase {

	private String passport;
	private String passwd;
	private String aid;

	public JsonRandomRegister(String jsonString) {
		super(jsonString);
		try {
			if (getCode() == 1) {
				JSONObject json = new JSONObject(jsonString);
				if (json.has("passport")) {
					passport = json.getString("passport");
				}
				if (json.has("passwd")) {
					passwd = json.getString("passwd");
				}
				if (json.has("aid")) {
					aid = json.getString("aid");
				}
			}
		} catch (JSONException e) {
			e.printStackTrace();
		}
	}

	public String getPassport() {
		return passport;
	}

	public String getPasswd() {
		return passwd;
	}

	public String getAid() {
		return aid;
	}

}
